package com.hspedu.poly_.polyparameter_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/23
 * @time 17:18
 */
public class Employee {
    private String name;
    private double monthSal;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMonthSal() {
        return monthSal;
    }

    public void setMonthSal(double monthSal) {
        this.monthSal = monthSal;
    }

    public Employee(String name, double monthSal) {
        this.name = name;
        this.monthSal = monthSal;
    }

    public double getAnnual(){
        return monthSal * 12;
    }

}
